# -*- encoding:utf-8 -*-

from taobao.request import TaobaoRequest

class UserGetRequest(TaobaoRequest):
    """TOP API: taobao.user.get"""

    # 需要返回的商品对象字段
    fields  = str()
    #卖家昵称
    nick    = str()
    #商品id
    iid     = str()
    # 商品数字id
    numIid  = long()
    
    def __init__(self, *args, **kwargs):
        pass

    def setFields(self, fields):
        self.fields = fields

    def setNick(self, nick):
        self.nick = nick

    def setIid(self, iid):
        self.iid = iid

    def setNumIid(self, numIid):
        self.numIid = numIid

    def getApiName(self):
        return "taobao.user.get"

    def getTextParams(self):

        params = {}
        # setup text params
        params['fields']  = self.fields
        params['nick']    = self.nick
        params['iid']     = self.iid
        params['num_iid'] = self.numIid

        return params
